<template>
	<el-form :model="value" ref="goodsBase" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()" label-width="90px">
		<el-form-item label="商品名称" prop="spuName">
			<el-input v-model="value.goodsSpu.spuName" placeholder="请输入商品名称"></el-input>
		</el-form-item>
		<el-form-item label="商品副标题" prop="spuCaption">
			<el-input v-model="value.goodsSpu.spuCaption" placeholder="请输入商品副标题"></el-input>
		</el-form-item>
		<el-form-item label="品牌编号" prop="brandCode">
			<el-input v-model="value.goodsSpu.brandCode" placeholder="请输入品牌编号"></el-input>
		</el-form-item>
		<el-form-item label="一级商品分类编号" prop="categoryCodeLevelFirst">
			<el-input v-model="value.goodsSpu.categoryCodeLevelFirst" placeholder="请输入一级商品分类编号"></el-input>
		</el-form-item>
		<el-form-item label="二级商品分类编号" prop="categoryCodeLevelSceond">
			<el-input v-model="value.goodsSpu.categoryCodeLevelSceond" placeholder="请输入二级商品分类编号"></el-input>
		</el-form-item>
		<el-form-item label="三级商品分类编号" prop="categoryCodeLevelThird">
			<el-input v-model="value.goodsSpu.categoryCodeLevelThird" placeholder="请输入三级商品分类编号"></el-input>
		</el-form-item>
		<el-form-item label="模版编号" prop="templateCode">
			<el-input v-model="dataForm.templateCode" placeholder="请输入模版编号"></el-input>
		</el-form-item>
		<el-form-item label="运费模版编号" prop="freightCode">
			<el-input v-model="value.goodsSpu.freightCode" placeholder="请输入运费模版编号"></el-input>
		</el-form-item>
		<el-form-item label="主图" prop="masterImage">
			<el-input v-model="value.goodsSpu.masterImage" placeholder="请输入主图"></el-input>
		</el-form-item>
		<el-form-item label="图片列表:轮播图" prop="rotateImageList">
			<el-input v-model="value.goodsSpu.rotateImageList" placeholder="请输入图片列表:轮播图"></el-input>
		</el-form-item>
		<el-form-item label="商品描述,详情" prop="goodsDesc">
			<el-input v-model="value.goodsSpu.goodsDesc" placeholder="请输入商品描述,详情"></el-input>
		</el-form-item>
		<el-form-item label="规格列表" prop="specItems">
			<el-input v-model="value.goodsSpu.specItems" placeholder="请输入规格列表"></el-input>
		</el-form-item>
		<el-form-item label="参数列表" prop="paraItems">
			<el-input v-model="value.goodsSpu.paraItems" placeholder="请输入参数列表"></el-input>
		</el-form-item>
		<el-form-item label="销量" prop="salesVolume">
			<el-input v-model="value.goodsSpu.salesVolume" placeholder="请输入销量"></el-input>
		</el-form-item>
		<el-form-item label="评论量" prop="commentVolume">
			<el-input v-model="value.goodsSpu.commentVolume" placeholder="请输入评论量"></el-input>
		</el-form-item>
		<el-form-item label="上架状态 1.上架 2.未上架" prop="isMarketable">
			<el-input v-model="value.goodsSpu.isMarketable" placeholder="请输入上架状态 1.上架 2.未上架"></el-input>
		</el-form-item>
		<el-form-item label="货号" prop="goodsItemCode">
			<el-input v-model="value.goodsSpu.goodsItemCode" placeholder="请输入货号"></el-input>
		</el-form-item>
		<el-form-item label="是否启用规格 1.启用 2.禁用" prop="isEnableSpec">
			<el-input v-model="value.goodsSpu.isEnableSpec" placeholder="请输入是否启用规格 1.启用 2.禁用"></el-input>
		</el-form-item>
		<el-form-item label="是否删除 1.是 2.否" prop="isDelete">
			<el-input v-model="value.goodsSpu.isDelete" placeholder="请输入是否删除 1.是 2.否"></el-input>
		</el-form-item>
		<el-form-item label="是否需要用户提供度数:仅当散光镜,近视镜,远视镜的时需要提供" prop="userProvidedDegrees">
			<el-input v-model="value.goodsSpu.userProvidedDegrees" placeholder="请输入是否需要用户提供度数:仅当散光镜,近视镜,远视镜的时需要提供"></el-input>
		</el-form-item>
		<el-form-item label="spu编号" prop="spuCode">
			<el-input v-model="value.goodsSpu.spuCode" placeholder="请输入spu编号"></el-input>
		</el-form-item>
		<el-form-item>
			<el-button @click="cancel">取消</el-button>
			<el-button type="primary" @click="submit('dataForm')">确定</el-button>
		</el-form-item>
	</el-form>
</template>

<script>
export default{
	props: {
		value: Object,
	},
}
</script>

<style>
</style>
